//
//  PhotoCollectionViewCell.m
//  Project1
//
//  Created by 黄珂耀 on 15/7/23.
//  Copyright (c) 2015年 黄珂耀. All rights reserved.
//

#import "PhotoCollectionViewCell.h"

#define KWidth [UIScreen mainScreen].bounds.size.width
#define KHeight [UIScreen mainScreen].bounds.size.height

@implementation PhotoCollectionViewCell

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self)
    {
        [self _createCell];
    }
    return self;
}

- (void)setPhotoURL:(NSString *)photoURL
{
    _photoURL = photoURL;
    _photoScrollView.imageURL = _photoURL;

}

- (void)_createCell
{
    self.backgroundColor = [UIColor blackColor];
//    self.backgroundColor = [UIColor blueColor];
    
    _photoScrollView = [[PhotoScrollView alloc] initWithFrame:self.bounds];
    
    [self.contentView addSubview:_photoScrollView];
}

@end
